//computeAverage.java       
//Enter some numbers about test scores at order line and print out the average score.
public class computeAverage
{
  public static void main(String ... args)
  {
   int average = 0;
   int sum =0;
   if(args.length!= 0)
   {
    for(int a =1;a<args.length;a++)
      sum += Integer.parseInt(args[a]);
   }
   
   average = sum/(args.length-1);
     
   System.out.println();
   System.out.println("学号: "+Integer.parseInt(args[0]));
   System.out.println("平均成绩: "+average);
   }
}   

